using System;
using UnityEngine;

[Serializable]
public class partstatsmarket : MonoBehaviour
{
	public int attack;

	public int defence;

	public int endurance;

	public int wattack;

	public int wdefence;

	public int wendurance;

	public int battack;

	public int bdefence;

	public int bendurance;

	public GameObject attackonestar;

	public GameObject attacktwostar;

	public GameObject attackthreestar;

	public GameObject attackfourstar;

	public GameObject defenceonestar;

	public GameObject defencetwostar;

	public GameObject defencethreestar;

	public GameObject defencefourstar;

	public GameObject enduranceonestar;

	public GameObject endurancetwostar;

	public GameObject endurancethreestar;

	public GameObject endurancefourstar;

	public partstatsmarket()
	{
		attack = 1;
		defence = 1;
		endurance = 1;
		wattack = 1;
		wdefence = 1;
		wendurance = 1;
		battack = 1;
		bdefence = 1;
		bendurance = 1;
	}

	public void Update()
	{
		if (attack == 1)
		{
			attackonestar.active = true;
			attacktwostar.active = false;
			attackthreestar.active = false;
			attackfourstar.active = false;
		}
		if (attack == 2)
		{
			attacktwostar.active = true;
			attackonestar.active = false;
			attackthreestar.active = false;
			attackfourstar.active = false;
		}
		if (attack == 3)
		{
			attackthreestar.active = true;
			attacktwostar.active = false;
			attackonestar.active = false;
			attackfourstar.active = false;
		}
		if (attack == 4)
		{
			attackfourstar.active = true;
			attackonestar.active = false;
			attacktwostar.active = false;
			attackthreestar.active = false;
		}
		if (defence == 1)
		{
			defenceonestar.active = true;
			defencetwostar.active = false;
			defencethreestar.active = false;
			defencefourstar.active = false;
		}
		if (defence == 2)
		{
			defenceonestar.active = false;
			defencetwostar.active = true;
			defencethreestar.active = false;
			defencefourstar.active = false;
		}
		if (defence == 3)
		{
			defenceonestar.active = false;
			defencetwostar.active = false;
			defencethreestar.active = true;
			defencefourstar.active = false;
		}
		if (defence == 4)
		{
			defenceonestar.active = false;
			defencetwostar.active = false;
			defencethreestar.active = false;
			defencefourstar.active = true;
		}
		if (endurance == 1)
		{
			enduranceonestar.active = true;
			endurancetwostar.active = false;
			endurancethreestar.active = false;
			endurancefourstar.active = false;
		}
		if (endurance == 2)
		{
			enduranceonestar.active = false;
			endurancetwostar.active = true;
			endurancethreestar.active = false;
			endurancefourstar.active = false;
		}
		if (endurance == 3)
		{
			enduranceonestar.active = false;
			endurancetwostar.active = false;
			endurancethreestar.active = true;
			endurancefourstar.active = false;
		}
		if (endurance == 4)
		{
			enduranceonestar.active = false;
			endurancetwostar.active = false;
			endurancethreestar.active = false;
			endurancefourstar.active = true;
		}
	}

	public void Main()
	{
	}
}
